import $ from "./jquery.js"

//我们可以把css文件也当做一个模块，webpack支持
//webpack在看到这个代码的时候，会将对应的css文件也打包进来
require('./index.css');

import "bootstrap/dist/css/bootstrap.css"

var pkg = require("../package.json");
// console.log(pkg);

$(function(){
    $("ul>li:odd").css("background-color", "pink");
    $("ul>li:even").css("background-color", "gold");
})


//ES6代码

class Person{
    constructor(){
        this.name = "zcm";
        this.age = 18;
    }
    sayHello(){
        console.log("要放假了");
    }
    static sayHi(){
        console.log("真的要放假了");
    }
}

var p = new Person();

var obj = {
    ...p,
    gender: "male"
}


// https://doc.webpack-china.org/guides/installation/